5a0697
@@ -415,6 +415,16 @@
public class SedaEndpoint extends DefaultEndpoint implements BrowsableEndpoint,
         return EndpointHelper.browseRangeMessagesAsXml(this, fromIndex, toIndex, includeBody);
     }
 
+    @ManagedAttribute(description = "Camel context name")
+    public String getCamelId() {
+        return getCamelContext().getName();
+    }
+
+    @ManagedAttribute(description = "Endpoint service state")
+    public String getState() {
+        return getStatus().name();
+    }
+
     void onStarted(SedaProducer producer) {
         producers.add(producer);
     }
@@ -437,6 +447,10 @@
public class SedaEndpoint extends DefaultEndpoint implements BrowsableEndpoint,
         }
     }
 
+    public boolean hasConsumers() {
+        return this.consumers.size() > 0;
+    }
+
     @Override
     protected void doStart() throws Exception {
         super.doStart();
@@ -492,10 +506,4 @@
public class SedaEndpoint extends DefaultEndpoint implements BrowsableEndpoint,
         queue = null;
     }
 
-    public boolean hasConsumers() {
-        if (this.consumers == null) {
-            return false;
-        }
-        return this.consumers.size() > 0;
-    }
 }
